package FirstChapter.one;

import java.util.Scanner;

/**
 * Created by Lee on 2017/2/14 0014.
 */
public class nine {
    public static void main(String[] args) {
//        int a = System.in.read();
        Scanner scanner = new Scanner(System.in);
        String s = "";
        int i = Integer.parseInt(scanner.nextLine());
        while (i != 0) {
            s += i % 2;
            i/=2;
        }
        char[] buf = s.toCharArray();
        for (int k=(buf.length-1);k>=0;k--) {
            System.out.print(buf[k]);
        }
    }
}
